package com.rose;

public class Progress implements DownloadEvent
{
	private int oldPercent = -1;
	private int percent;
	
	@Override
	public void percent(int n)
	{
		if(percent > oldPercent)
		{
			System.out.println("[" + String.valueOf(percent) + "%]" );
		}
		
	}
	@Override
	public void state(String str)
	{
		System.out.println(str);
		
	}
	@Override
	public void viewHttpHeaders(String str)
	{
		System.out.println(str);
		
	}
}
